/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hirt;

import java.applet.Applet;

/**
 *
 * @author adieffe
 */
public class AppletLoader extends Applet
{
    String parameterType;

    @Override
    public void init()
    {
        parameterType = getParameter( "type" );

        System.out.println( "PARAMETER TYPE!!!!!!!!!!!!!!!!!!!!!!!!!! " + parameterType );

        try
        {
            javax.swing.SwingUtilities.invokeAndWait( new Runnable()
            {
                public void run()
                {
                    //new Loader( parameterType );
                    new Loader( parameterType );
                }
            } );

        }
        catch( Exception e )
        {
            //System.err.println("createGUI didn't successfully complete");
        }
    }
}
